def start_with(s, pre):
    if len(s) < len(pre):
        return False
    return s[0:len(pre)] == pre

